package com.tanhua.dubbo.api.mongo;

import com.tanhua.model.mongo.Friend;
import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.MovementVo;
import com.tanhua.model.vo.PageResult;
import org.bson.types.ObjectId;

import java.util.List;

public interface MovementApi {
    Movement post(Movement movement);

    PageResult<Movement> getMovement(List<Friend> friendList, PageResult pageResult);

    List<Friend> getFriend(Long userId);

    PageResult<Movement> getRecommend(PageResult pageResult,List<String> ids);

    Integer loveMovement(ObjectId id, Long loginId);

    Integer unloveMovement(ObjectId id,Long loginId);

    Integer likeMovement(ObjectId id,Long loginId);

    Integer dislike(ObjectId id,Long loginId);

    PageResult<Movement> getAllMovement(PageResult pageResult, Long id);

    Movement getOneMovement(ObjectId id);
}
